import { defineStore } from "pinia";
// import { useMqtt } from "@/hooks/useMqtt";
// let { subscribe, publish } = useMqtt("ws://121.36.203.95:8083/mqtt");
export const useStore = defineStore("mqtt", {
  state: () => {
    return {
      mqttMsg: {},
      idx: -1,
    };
  },
  getters: {},
  actions: {
    setMqttData(data) {
      this.mqttMsg = data;
    },
  },
});
